//
//  XCSMSTheme.m
//  HOLLASMSLoginKit
//
//  Created by Mars on 2019/10/12.
//  Copyright © 2019 mao PengLin. All rights reserved.
//

#import "XCSMSTheme.h"
#define RGB_COLOR(R,G,B) [UIColor colorWithRed:((R) / 255.0f) green: ((G) / 255.0f) blue:((B) / 255.0f) alpha: 1.0f]

@implementation XCSMSTheme

+ (instancetype)sharedTheme {
    static XCSMSTheme *_sharedInstance = nil;
    static dispatch_once_t onceToken;
    dispatch_once(&onceToken, ^{
        _sharedInstance = [[XCSMSTheme alloc] init];
    });
    return _sharedInstance;
}

- (instancetype)init {
    self = [super init];
    if (self) {
        [self setDefaultTheme];
    }
    return self;
}

- (void)configTheme {
    [self setDefaultTheme];
}

- (void)setDefaultTheme {
    self.backgroundColor = [UIColor whiteColor];       //页面背景色
    
    self.buttonBackgroundColor = RGB_COLOR(254, 36, 150);         //按钮背景色
    
    self.buttonDisabledBackgroundColor = RGB_COLOR(249, 249, 249);         //按钮不可点击色
    
    self.buttonTitleColor = [UIColor whiteColor];
    
    self.buttonTitleDisabledColor = RGB_COLOR(192, 192, 192);
    
    self.buttonCornerRadius = 20;           //按钮圆角
    
    self.inputTextColor = RGB_COLOR(64, 64, 64);
    
    self.inputCursorColor = self.buttonBackgroundColor;
    
    self.navBarTitleTextColor = self.inputTextColor;
    
    self.verticalSeparatorColor = RGB_COLOR(222, 226, 230);
    
    self.horizontalSeparatorColor = [UIColor blackColor];
    
    self.placeholderTextColor = self.buttonTitleDisabledColor;
    
    self.countryListHeaderTextColor = RGB_COLOR(36, 35, 35);
    
    self.countryListTextColor = self.placeholderTextColor;
    
    self.countryListSeparatorColor = RGB_COLOR(247, 244, 243);
    
    self.countryListCellHighlightedColor = RGB_COLOR(244, 244, 244);
}


@end
